package com.jewelry.service;

import com.jewelry.dto.CategoryDTO;
import com.jewelry.entity.Category;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author LZL
* @description 针对表【t_category】的数据库操作Service
* @createDate 2024-03-21 20:53:04
*/
public interface CategoryService extends IService<Category> {

    /**
     * 获取全部分类
     * @return 分类列表
     */
    List<CategoryDTO> getCategories();

    boolean addOrUpdateCategory(Category category);

    boolean deleteCategory(Integer id);

}
